home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / asm / Tandem.lha / Tandem / Teaching / 11.asm < prev    next >
Encoding:
Assembly Source File  |  1999-08-21  |  281 b   |  9 lines

  1. * 11.asm   Demonstate a DBRA loop       version 0.00    1.9.97
  2.  
  3.  move.l #0,d0
  4.  move.w #9,d1 ;D1 is the control variable: see line 0006. Loops D1-1 times
  5. Loop:
  6.  add.l #10,d0
  7.  dbra d1,Loop ;decrement D1, go to loop if D1<>$FFFF
  8.  rts          ;if D1=$FFFF, falls through to this line
  9.